EMT Practice Test
1. Question Content...
Question1: What is the purpose of using the local-exec provisioner? (Select Two)
Question8: By default, a defined provisioner is a creation-time provisioner.
Question9: In the following code snippet, the block type is identified by which string?
Question13: One remote backend configuration always maps to a single remote workspace.
Question15: A terraform apply can not___________infrastructure.
Question16: What is a downside to using the Vault provider to read secrets from Vault?
Question18: What Terraform command can be used to inspect the current state file?
Question26: By default, where does Terraform store its state file?
Question30: Which one of the following will run echo 0 and echo 1 on a newly created host?
Question32: How can terraform plan aid in the development process?
Question35: Complete the following sentence:
The terraform state command can be used to ____
Question36: From the answers below, select the advantages of using Infrastructure as Code.
Question37: What is the name assigned by Terraform to reference this resource?
Question38: When using remote state, state is only ever held in memory when used by Terraform.
Question40: Which argument(s) is (are) required when declaring a Terraform variable?
Question49: A terraform apply can not _________ infrastructure.
Question50: From the code below, identify the implicit dependency:
Question52: In the example below, the depends_on argument creates what type of dependency?
Question53: terraform validate validates the syntax of Terraform files.
Question56: What does Terraform use .terraform.lock.hcl file for?
Question61: What advantage does an operations team that uses infrastructure as code have?
Question62: What are some of the features of Terraform state? (select three)
Question65: When should you use the force-unlock command?
Question69: Which of the following actions are performed during a terraform init?
Question76: Which of the following is allowed as a Terraform variable name?
Question79: What does terraform refresh command do?
Question83: What does terraform import allow you to do?
Question87: Which of the below datatype is not supported by Terraform.
Question89: Why might a user opt to include the following snippet in their configuration file?
Question95: Which backend does the Terraform CLI use by default?
Question98: Multiple provider instances blocks for AWS can be part of a single configuration file?
Question99: Why should secrets not be hard coded into Terraform code? Choose two correct answers
Question100: Terraform variable names are saved in the state file.
Question101: Module version is required to reference a module on the Terraform Module Registry.
Question113: What is the name assigned by Terraform to reference this resource?
Question114: What is the provider for this fictitious resource?
Question117: Which argument(s) are required when declaring a Terraform variable?
Question121: Which of the following best describes a Terraform provider?
Question122: Which command lets you experiment with Terraform's built-in functions?
Question123: Using the terraform state rm command against a resource will destroy it.
Question124: terraform destroy is the only way to remove infrastructure.
Question125: A Terraform provider is not responsible for:
Question126: What does terraform destroy do?
Question134: Which of the following is true about terraform apply? (Choose two.)
Question135: What Terraform feature is shown in the example below?
Question139: Which of these is the best practice to protect sensitive values in state files?
Question141: Resources in terraform can have same identifiers(Resource type + Block name).
Question144: Which of the following can you do with terraform plan? Choose two correct answers.
Question145: Terraform plan updates your state file.
Question147: How is terraform import run?
Question148: Why would you use the terraform taint command?
Question152: Which of the following is not valid source path for specifying a module?
Question153: Any user can publish modules to the public Terraform Module Registry.
Question155: Where does the Terraform local backend store its state?
Question156: Which of the following best describes the default local backend?
Question161: The terraform.tfstate file always matches your currently built infrastructure.








